﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SunrayEngine.Maps
{
    /// <summary>
    /// A SunRay Engine Quadtree that handels optimization of collision and Trilateration
    /// </summary>
    public sealed class QuadTree
    {
        #region fields
        private int width; //The width of the tree
        private int height; //The height of the tree
        private QuadNode nodeRoot; //The root node
        #endregion

        #region initialization
        public QuadTree(int width, int height)
        {
            this.width = width;
            this.height = height;

            //Initialize a new instance of a node which will serve as
            //Root node.
            //This node the generates the whole tree.
            nodeRoot = new QuadNode(0, 0, width, height, null);
        }
        #endregion
    }
}
